home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / Missile Defender.swf / scripts / DefineSprite_214 / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  513 b   |  15 lines

  1. m = i;
  2. xi = getProperty("/rocket2", _X);
  3. yi = getProperty("/rocket2", _Y);
  4. ri = getProperty("/rocket2", _rotation);
  5. wi = getProperty("/rocket2", _xscale);
  6. hi = getProperty("/rocket2", _yscale);
  7. randomx = (random("10") - "5") / "2";
  8. randomy = (random("10") - "5") / "2";
  9. xi += randomx;
  10. yi += randomy;
  11. duplicateMovieClip("/particle2","particle2" add m,"30" + m + 16384);
  12. setProperty("/particle2" add m, _X, xi);
  13. setProperty("/particle2" add m, _Y, yi);
  14. setProperty("/particle2" add m, _rotation, ri);
  15.